#pragma once

#include "IRotInterpolator.h"
#include "RotKey.h"
#include <vector>
#include <Quat.h>
using namespace sm;

class TCBRotInterpolator : public IRotInterpolator
{
private:
	std::vector<RotKey*> keys;

	void GetVectors(float time, float &normalizedTime, Quat &pt1, Quat &pt2, Quat &tn1, Quat &tn2);

public:
	void GetValue(float time,  float &angle, Vec3 &axis);
	void AddKey(float time, float angle, Vec3 axis);
};
